package cn.mesmile.security.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zb
 * @date 2020/4/5 22:46
 * @Description:
 */
@RequestMapping("/product")
@RestController
public class ProductController {


    @Secured("ROLE_PRODUCT")
    @GetMapping("/findAll")
    public String findAll(){
        return "findALL product admin";
    }



}
